﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Opennav.MapGenerator.Map.Labels;
using Opennav.MapGenerator.Geometry;

namespace Opennav.MapGenerator.Locator
{
    public class GeoArea
    {
        private List<GeoArea> _subareas = new List<GeoArea>();
        private List<GeoPlace> _places = new List<GeoPlace>();

        public GeoArea(string name, int level, Multipolygon polygon)
        {
            this.Name = name;
            this.Level = level;
            this.Polygon = polygon;
        }

        public string Name { get; set; }

        public Multipolygon Polygon { get; set; }

        public GeoArea Parent { get; set; }

        public int Level { get; set; }

        public List<GeoArea> Subareas { get { return _subareas; } }

        public List<GeoPlace> Places { get { return _places; } }
    }
}
